<template>
    <Child :init ="{height:'180厘米',weight:'70公斤'}" />
    <Child :height ="bodyInfo.height" :weight ="bodyInfo.weight"/>
    <Child v-bind ="bodyInfo" />
</template>
<script setup>
import Child from './Child.vue';
import { ref } from 'vue';
// const username = ref('小圆');
// const age = ref(18);
// const isFlag = ref(true);
const hobby = ref(['唱歌', '跳舞', '游泳']);
const bodyInfo = {
    height: '180厘米',
    weight: '70千克'
}
</script>